package cn.idock.frame;

import android.app.Application;
import android.preference.PreferenceManager;
import cn.idock.frame.download.DownloadManager;
import cn.idock.frame.download.DownloadManagerImpl;

public class PzApplication extends Application {
	public static final String TAG = "PzApplication";

	/**
	 * Singleton pattern
	 */
	private static PzApplication instance;

	/**
	 * Provides interface for download related actions.
	 */
	private DownloadManager mDownloadManager;

	@Override
	public void onCreate() {
		super.onCreate();
		instance = this;
		mDownloadManager = new DownloadManagerImpl(this);
	}

	public static PzApplication getInstance() {
		return instance;
	}

	public DownloadManager getDownloadManager() {
		return mDownloadManager;
	}

}
